package com.group.service.impl;

import com.group.pojo.Delivery;
import com.group.mapper.DeliveryMapper;
import com.group.service.DeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Service
public class DeliveryServiceImpl implements DeliveryService {
    @Autowired
    private DeliveryMapper deliveryMapper;


    @Override
    public List<Delivery> findByProperty(Delivery delivery) {
        return deliveryMapper.findByProperty(delivery);
    }


    @Override
    public boolean updateDelivery(Delivery delivery,Integer id) {
        return deliveryMapper.updateDelivery(delivery,id);
    }

    @Override
    public boolean insertDelivery(Delivery delivery) {
        return deliveryMapper.insertDelivery(delivery);
    }

    @Override
    public boolean deleteByDeliveryId(String []args , Integer jud) {
        return deliveryMapper.deleteByDeliveryId(args,jud);
    }

    @Override
    public boolean updateDeliveryExamine(String[] args, Integer jud) {
        return deliveryMapper.updateDeliveryExamine(args,jud);
    }

    @Override
    public List<Delivery> findAll() {
        return deliveryMapper.findAll();
    }

    @Override
    public List<Delivery> findById(Delivery delivery) {
        return deliveryMapper.findById(delivery);
    }

    @Override
    public Delivery findDeliveryById(Integer id) {
        return deliveryMapper.findDeliveryById(id);
    }
}
